package com.atguigu.Service.Impl;

import com.atguigu.Service.StudentService;
import com.atguigu.dao.StudentDao;
import com.atguigu.pojo.Student;

import java.util.List;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package com.atguigu.Service.Impl
 * @date 2024/4/22 上午11:03
 */
public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public List<Student> findAll() {
        List<Student> students = studentDao.queryAll();
        System.out.println("studentDao = " + students);
        return students;
    }
}
